package com.xnewtech.xplatform.swan.system.modular.sys.controller;

import com.xnewtech.xplatform.swan.libs.scanner.annotation.GetResource;
import com.xnewtech.xplatform.swan.libs.scanner.stereotype.ApiResource;
import com.xnewtech.xplatform.swan.model.web.response.ResponseData;
import com.xnewtech.xplatform.swan.model.web.response.SuccessResponseData;
import com.xnewtech.xplatform.swan.system.modular.sys.service.SysMachineService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 系统属性监控控制器
 *
 * @author xnew
 * @date 2020/6/5 14:36
 */
//@RestController
//@ApiResource(name = "系统监控")
public class SysMachineController {

    @Resource
    private SysMachineService sysMachineService;

    /**
     * 系统属性监控
     *
     * @author xnew
     * @date 2020/6/5 14:38
     */
    @GetResource(name = "系统属性监控", path = "/sysMachine/query", requiredPermission = false)
    public ResponseData query() {
        return new SuccessResponseData(sysMachineService.query());
    }
}
